package cn.hacynn.nd.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Hacynn
 * @Date 2024/5/25 9:40
 * @Version 1.0
 */
@Component
@ConfigurationProperties(prefix = "nd.jwt")   // 配置属性类, 从 yml 中取值
@Data
public class JwtProperties {

    private String userSecretKey;
    private long userTtl;
    private String userTokenName;
    /**
     * 用户生成jwt令牌相关配置
     */

}
